#ifndef _QTOVERLAY_
#define _QTOVERLAY_

#include <gst/gst.h>

#include <QWidget>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QSlider>
#include <QTimer>

class PlayerWindow : public QWidget
{
    Q_OBJECT
public:
  PlayerWindow(GstElement *p);

  WId getVideoWId() const ;

private:
  GstElement *pipeline;

  QWidget *videoWindow;

  QVBoxLayout *playerLayout;

  GstState state;
  gint64 totalDuration;
};

#endif
